package edu.zzuli.model.core.iface;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;

import edu.zzuli.model.dao.BasePO;

/**
 * @author tianshaojie
 * @date 2011-8-19
 * @discription :
 */
public interface PublicFacade {
	BasePO selectSingle(BasePO basePO);
	String queryForString (String sql,Map mapPara);
	String queryForString(String sql, MapSqlParameterSource mapPara);
	Map queryForMap(String sql,Map mapPara);
	List selectExact(BasePO basePO,StringBuffer sbWhere);
	List queryForList(String sql);
	List queryForList(String sql, Map mapParam);
	List queryForList(String sql, SqlParameterSource paramSource);
	void execute(String sql);
	void execute(String sql, SqlParameterSource paramSource);
	void execute(String sql, Map mapParam);
	void saveSingleBasePO(BasePO basePO);
}
